package com.andy.qhb.entity;

import java.util.Map;

import com.andy.qhb.game.GlobalHttp;
import com.google.common.collect.Maps;

public class UsrQiangbLog extends BaseEntity{

	private static final long serialVersionUID = 1L;

	public UsrQiangbLog() {
	}
	
	public UsrQiangbLog(Long id) {
		super(id);
	}
	
	private Long uid;
	private String name;
	
	private Long pid;
	
	private Integer qorder;
	private Integer miansi;
	private Integer coin;
	
	private String remark;
	
	public Long getUid() {
		return uid;
	}

	public void setUid(Long uid) {
		this.uid = uid;
	}

	public static String table() {
		return "usr_qiangb_log";
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Long getPid() {
		return pid;
	}

	public void setPid(Long pid) {
		this.pid = pid;
	}

	public Integer getCoin() {
		return coin;
	}

	public void setCoin(Integer coin) {
		this.coin = coin;
	}

	public Integer getQorder() {
		return qorder;
	}

	public void setQorder(Integer qorder) {
		this.qorder = qorder;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getMiansi() {
		return miansi;
	}

	public void setMiansi(Integer miansi) {
		this.miansi = miansi;
	}

	public Map<String, Object> toMap() {
		Map<String,Object> map = Maps.newHashMap();
		map.put("id", getId());
		map.put("uid", uid);
		map.put("name", name);
		map.put("icon", GlobalHttp.getUser(uid).getIcon());
		map.put("qorder", qorder);
		map.put("miansi", miansi);
		map.put("coin", coin);
		map.put("remark", remark);
		map.put("createTime", getCreateTime());
		return map;
	}

	
	
}
